import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:book-open',    
      keepAlive: true,
      title: '课程配置',
      order: 1
    },
    name: 'Course',
    path: '/course',
    children: [
      {
        meta: {
          title: '课程管理',
        },
        name: 'CourseManagement',
        path: 'courseMgr',
        component: () => import('#/views/course/course-mgr.vue'),
      }, 
      {
        meta: {
          title: '科目分类',
        },
        name: 'SubjectCategory',
        path: 'subjectCategory',
        component: () => import('#/views/course/subject-category.vue'),
      },
    ],
  },
];

export default routes;
